<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>修改问卷</title>
		<link rel="stylesheet" type="text/css" href="css/main.css">
	</head>

	<body>
		<div style="margin:0 auto; width:1000px" >
		<%@include file="header.jsp"%>
		<table width="100%" border="1" cellpadding="2" cellspacing="0"
			bordercolor="#c8d7e3" class="forum_text" style="margin-top:10px">
			<tr>
				<td>
				标题<br/>
				<input type="text" name="paper.title" width="100%" disabled="disabled" value="<s:property value="paper.title"/>"/><br/>
				简介<br/>
				<textarea name="paper.introduction" style="width:1000px" disabled="disabled"><s:property value="paper.introduction"/></textarea><br/>
				</td>
			</tr>
		</table>
		<a href="addQuestion.jsp?pid=<s:property value="paper.id"/>">添加问题</a>
			
			<s:iterator value="paper.questions" id="question">
				<table width="100%" border="1" cellpadding="2" cellspacing="0"
					bordercolor="#c8d7e3" class="forum_text" style="margin-top:10px">
					<tr><td width="30%">问题</td><td><s:property value='#question.title'/></td></tr>
					<s:iterator value="#question.options" id="option">
						<tr>
							<td>选项</td><td><s:property value='#option.content'/></td>
						</tr>
					</s:iterator>
				</table>
			</s:iterator>
		</div>
	</body>
</html>
